#ifndef KING_H
#define KING_H

#include "src/boardfigure.h"
#include "src/move.h"
#include "src/constants.h"

class King : public BoardFigure {
 public:
  King( int, int, QString, int, QGraphicsItem* parent = 0 );
  virtual QList<Move*>& getPossibleMoves( BoardFigure* [8][8] );
  virtual QList<QPoint*>& getAttackedFields( BoardFigure* [8][8] );

 private:
  bool isShortCastlingPossible( BoardFigure* [8][8] );
  bool isLongCastlingPossible( BoardFigure* [8][8] );
};

#endif
